<?xml version="1.0" encoding="utf-8" ?>
<!--系统层的对像定义-->
<objects xmlns='http://www.springframework.net'>
  <!-- DAO 父对像定义 -->
  <object id="baseDao" abstract="true" type="FastSpring.Base.BaseDAO,FastSpring.Net">
    <property name="SessionFactory" ref="SessionFactory"/>
    <!-- NHibernate 存储过程的调用的实现 -->
    <property name="DBHelper" ref="DBHelper"/>
    <!-- 如果不使用表前缀功能，可以不用以下参数 -->
    <property name="NamingStrategy" ref="NamingStrategy"/>
  </object>

  <object id="PasswordProvider" type="FastSpring.Auth.PasswordProvider,FastSpring.Net.Auth">
    <!-- 密码加密方法 -->
    <property name="PasswordProviderType" value="MD5"/>
  </object>

  <object id="SendMailBLL" type="FastSpring.SendMailBLL,FastSpring.Net">
    <property name="MailCharset" value="utf-8"/>
    <property name="SMTPServer" value="a"/>
    <property name="SMTPUserName" value="a"/>
    <property name="SMTPUserPass" value="a"/>
    <property name="MailFrom" value="a"/>
    <property name="MailFromName" value="a"/>
  </object>

  <object id="CommonDAO" type="FastSpring.Core.CommonDAO,FastSpring.Net.Core" parent="baseDao" />
  <object id="CommonManager" type="FastSpring.Core.CommonManager,FastSpring.Net.Core">
    <property name="CommonDAO" ref="CommonDAO"/>
  </object>

  <!-- Core 缓存 -->
  <object id="CoreCacheBLL" type="FastSpring.Core.CoreCacheBLL,FastSpring.Net.Core" singleton="true">
    <property name="CommonManager" ref="CommonManager"/>
  </object>
  
  <!-- 工作流缓存 -->
  <!--<object id="WorkFlowCache" type="FastSpring.Core.WF.WorkFlowCache,FastSpring.Net.Core" singleton="true">
    <property name="CommonManager" ref="CommonManager"/>
  </object>-->
  
  <!-- 工作流业务实体 -->
  <!--<object id="WorkFlowBLL" type="FastSpring.Core.WF.WorkFlowBLL,FastSpring.Net.Core" singleton="true">
    <property name="WorkFlowCache" ref="WorkFlowCache"/>
  </object>-->
  
  <!-- 系统初始化类 -->
  <object id="CoreInit" type="FastSpring.Core.Init.CoreInit,FastSpring.Net.Core" singleton="true">
    <constructor-arg name="CoreCacheBLL" ref="CoreCacheBLL" />
  </object>

</objects>